package com.nit.lab.dto.system;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class AccountDTO {

    private Long id;
    private String name;
    private String username;
    private String password;
    private String avatar;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private String roleId;
    private String token;
    private RoleDTO role;

    public AccountDTO() {
    }

    public AccountDTO(Long id, String name, String username, String password, String avatar, Integer status, Date createTime, String roleId, String token, RoleDTO role) {
        this.id = id;
        this.name = name;
        this.username = username;
        this.password = password;
        this.avatar = avatar;
        this.status = status;
        this.createTime = createTime;
        this.roleId = roleId;
        this.token = token;
        this.role = role;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public RoleDTO getRole() {
        return role;
    }

    public void setRole(RoleDTO role) {
        this.role = role;
    }
}
